package com.xbjtech.model;

import java.util.ArrayList;
import java.util.List;

public class StoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStoreNameIsNull() {
            addCriterion("store_name is null");
            return (Criteria) this;
        }

        public Criteria andStoreNameIsNotNull() {
            addCriterion("store_name is not null");
            return (Criteria) this;
        }

        public Criteria andStoreNameEqualTo(String value) {
            addCriterion("store_name =", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotEqualTo(String value) {
            addCriterion("store_name <>", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameGreaterThan(String value) {
            addCriterion("store_name >", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameGreaterThanOrEqualTo(String value) {
            addCriterion("store_name >=", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLessThan(String value) {
            addCriterion("store_name <", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLessThanOrEqualTo(String value) {
            addCriterion("store_name <=", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLike(String value) {
            addCriterion("store_name like", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotLike(String value) {
            addCriterion("store_name not like", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameIn(List<String> values) {
            addCriterion("store_name in", values, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotIn(List<String> values) {
            addCriterion("store_name not in", values, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameBetween(String value1, String value2) {
            addCriterion("store_name between", value1, value2, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotBetween(String value1, String value2) {
            addCriterion("store_name not between", value1, value2, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameIsNull() {
            addCriterion("store_linkname is null");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameIsNotNull() {
            addCriterion("store_linkname is not null");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameEqualTo(String value) {
            addCriterion("store_linkname =", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameNotEqualTo(String value) {
            addCriterion("store_linkname <>", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameGreaterThan(String value) {
            addCriterion("store_linkname >", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameGreaterThanOrEqualTo(String value) {
            addCriterion("store_linkname >=", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameLessThan(String value) {
            addCriterion("store_linkname <", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameLessThanOrEqualTo(String value) {
            addCriterion("store_linkname <=", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameLike(String value) {
            addCriterion("store_linkname like", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameNotLike(String value) {
            addCriterion("store_linkname not like", value, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameIn(List<String> values) {
            addCriterion("store_linkname in", values, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameNotIn(List<String> values) {
            addCriterion("store_linkname not in", values, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameBetween(String value1, String value2) {
            addCriterion("store_linkname between", value1, value2, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreLinknameNotBetween(String value1, String value2) {
            addCriterion("store_linkname not between", value1, value2, "storeLinkname");
            return (Criteria) this;
        }

        public Criteria andStoreMobileIsNull() {
            addCriterion("store_mobile is null");
            return (Criteria) this;
        }

        public Criteria andStoreMobileIsNotNull() {
            addCriterion("store_mobile is not null");
            return (Criteria) this;
        }

        public Criteria andStoreMobileEqualTo(String value) {
            addCriterion("store_mobile =", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileNotEqualTo(String value) {
            addCriterion("store_mobile <>", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileGreaterThan(String value) {
            addCriterion("store_mobile >", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileGreaterThanOrEqualTo(String value) {
            addCriterion("store_mobile >=", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileLessThan(String value) {
            addCriterion("store_mobile <", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileLessThanOrEqualTo(String value) {
            addCriterion("store_mobile <=", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileLike(String value) {
            addCriterion("store_mobile like", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileNotLike(String value) {
            addCriterion("store_mobile not like", value, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileIn(List<String> values) {
            addCriterion("store_mobile in", values, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileNotIn(List<String> values) {
            addCriterion("store_mobile not in", values, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileBetween(String value1, String value2) {
            addCriterion("store_mobile between", value1, value2, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreMobileNotBetween(String value1, String value2) {
            addCriterion("store_mobile not between", value1, value2, "storeMobile");
            return (Criteria) this;
        }

        public Criteria andStoreAddressIsNull() {
            addCriterion("store_address is null");
            return (Criteria) this;
        }

        public Criteria andStoreAddressIsNotNull() {
            addCriterion("store_address is not null");
            return (Criteria) this;
        }

        public Criteria andStoreAddressEqualTo(String value) {
            addCriterion("store_address =", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotEqualTo(String value) {
            addCriterion("store_address <>", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressGreaterThan(String value) {
            addCriterion("store_address >", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressGreaterThanOrEqualTo(String value) {
            addCriterion("store_address >=", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressLessThan(String value) {
            addCriterion("store_address <", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressLessThanOrEqualTo(String value) {
            addCriterion("store_address <=", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressLike(String value) {
            addCriterion("store_address like", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotLike(String value) {
            addCriterion("store_address not like", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressIn(List<String> values) {
            addCriterion("store_address in", values, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotIn(List<String> values) {
            addCriterion("store_address not in", values, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressBetween(String value1, String value2) {
            addCriterion("store_address between", value1, value2, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotBetween(String value1, String value2) {
            addCriterion("store_address not between", value1, value2, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andShengIdIsNull() {
            addCriterion("sheng_id is null");
            return (Criteria) this;
        }

        public Criteria andShengIdIsNotNull() {
            addCriterion("sheng_id is not null");
            return (Criteria) this;
        }

        public Criteria andShengIdEqualTo(Long value) {
            addCriterion("sheng_id =", value, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdNotEqualTo(Long value) {
            addCriterion("sheng_id <>", value, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdGreaterThan(Long value) {
            addCriterion("sheng_id >", value, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdGreaterThanOrEqualTo(Long value) {
            addCriterion("sheng_id >=", value, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdLessThan(Long value) {
            addCriterion("sheng_id <", value, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdLessThanOrEqualTo(Long value) {
            addCriterion("sheng_id <=", value, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdIn(List<Long> values) {
            addCriterion("sheng_id in", values, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdNotIn(List<Long> values) {
            addCriterion("sheng_id not in", values, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdBetween(Long value1, Long value2) {
            addCriterion("sheng_id between", value1, value2, "shengId");
            return (Criteria) this;
        }

        public Criteria andShengIdNotBetween(Long value1, Long value2) {
            addCriterion("sheng_id not between", value1, value2, "shengId");
            return (Criteria) this;
        }

        public Criteria andShiIdIsNull() {
            addCriterion("shi_id is null");
            return (Criteria) this;
        }

        public Criteria andShiIdIsNotNull() {
            addCriterion("shi_id is not null");
            return (Criteria) this;
        }

        public Criteria andShiIdEqualTo(Long value) {
            addCriterion("shi_id =", value, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdNotEqualTo(Long value) {
            addCriterion("shi_id <>", value, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdGreaterThan(Long value) {
            addCriterion("shi_id >", value, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("shi_id >=", value, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdLessThan(Long value) {
            addCriterion("shi_id <", value, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdLessThanOrEqualTo(Long value) {
            addCriterion("shi_id <=", value, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdIn(List<Long> values) {
            addCriterion("shi_id in", values, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdNotIn(List<Long> values) {
            addCriterion("shi_id not in", values, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdBetween(Long value1, Long value2) {
            addCriterion("shi_id between", value1, value2, "shiId");
            return (Criteria) this;
        }

        public Criteria andShiIdNotBetween(Long value1, Long value2) {
            addCriterion("shi_id not between", value1, value2, "shiId");
            return (Criteria) this;
        }

        public Criteria andQuIdIsNull() {
            addCriterion("qu_id is null");
            return (Criteria) this;
        }

        public Criteria andQuIdIsNotNull() {
            addCriterion("qu_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuIdEqualTo(Long value) {
            addCriterion("qu_id =", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotEqualTo(Long value) {
            addCriterion("qu_id <>", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdGreaterThan(Long value) {
            addCriterion("qu_id >", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdGreaterThanOrEqualTo(Long value) {
            addCriterion("qu_id >=", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdLessThan(Long value) {
            addCriterion("qu_id <", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdLessThanOrEqualTo(Long value) {
            addCriterion("qu_id <=", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdIn(List<Long> values) {
            addCriterion("qu_id in", values, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotIn(List<Long> values) {
            addCriterion("qu_id not in", values, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdBetween(Long value1, Long value2) {
            addCriterion("qu_id between", value1, value2, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotBetween(Long value1, Long value2) {
            addCriterion("qu_id not between", value1, value2, "quId");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Integer value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Integer value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Integer value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Integer value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Integer> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Integer> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Integer value1, Integer value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andLockedIsNull() {
            addCriterion("locked is null");
            return (Criteria) this;
        }

        public Criteria andLockedIsNotNull() {
            addCriterion("locked is not null");
            return (Criteria) this;
        }

        public Criteria andLockedEqualTo(Integer value) {
            addCriterion("locked =", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedNotEqualTo(Integer value) {
            addCriterion("locked <>", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedGreaterThan(Integer value) {
            addCriterion("locked >", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedGreaterThanOrEqualTo(Integer value) {
            addCriterion("locked >=", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedLessThan(Integer value) {
            addCriterion("locked <", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedLessThanOrEqualTo(Integer value) {
            addCriterion("locked <=", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedIn(List<Integer> values) {
            addCriterion("locked in", values, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedNotIn(List<Integer> values) {
            addCriterion("locked not in", values, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedBetween(Integer value1, Integer value2) {
            addCriterion("locked between", value1, value2, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedNotBetween(Integer value1, Integer value2) {
            addCriterion("locked not between", value1, value2, "locked");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}